<div id="list">
<?php if (count($docente_list)): ?>
<table class="paginacao" cellpadding="2" cellspacing="0" width="100%" align="center">
	<tr>
		<td align="left"><?php $pager_layout->displayResultados(); ?></td>
		<td align="right"><?php $pager_layout->display(array('nourl'=>true)); ?></td>
	</tr>
</table>
<?php endif; ?>

<table class="list">
	<thead>
    <tr>
	    <th><?php echo $form['id_docente']->renderLabel() ?></th>
	    <th><?php echo $form['nm_docente']->renderLabel() ?></th>
	    <th><?php echo $form['nu_ordem']->renderLabel() ?></th>
	    <th><?php echo $form['nu_matricula']->renderLabel() ?></th>
	    <th><?php echo $form['nm_mae']->renderLabel() ?></th>
	    <th><?php echo $form['nm_pai']->renderLabel() ?></th>
	    <th><?php echo $form['nm_conjuge']->renderLabel() ?></th>
	    <th><?php echo $form['dt_nascimento']->renderLabel() ?></th>
	    <th><?php echo $form['sg_nacionalidade']->renderLabel() ?></th>
	    <th><?php echo $form['sg_estado_civil']->renderLabel() ?></th>
	    <th><?php echo $form['nm_cidade_nascimento']->renderLabel() ?></th>
	    <th><?php echo $form['sg_uf_nascimento']->renderLabel() ?></th>
	    <th><?php echo $form['nu_ci']->renderLabel() ?></th>
	    <th><?php echo $form['ds_ci_orgao_emissor']->renderLabel() ?></th>
	    <th><?php echo $form['sg_ci_uf']->renderLabel() ?></th>
	    <th><?php echo $form['nu_ctps']->renderLabel() ?></th>
	    <th><?php echo $form['nu_ctps_serie']->renderLabel() ?></th>
	    <th><?php echo $form['nu_reservista']->renderLabel() ?></th>
	    <th><?php echo $form['nu_reservista_categoria']->renderLabel() ?></th>
	    <th><?php echo $form['nu_cpf']->renderLabel() ?></th>
	    <th><?php echo $form['ds_endereco']->renderLabel() ?></th>
	    <th><?php echo $form['sg_endereco_uf']->renderLabel() ?></th>
	    <th><?php echo $form['nu_endereco_cep']->renderLabel() ?></th>
	    <th><?php echo $form['dt_admissao']->renderLabel() ?></th>
	    <th><?php echo $form['dt_demissao']->renderLabel() ?></th>
	    <th><?php echo $form['ds_cargo']->renderLabel() ?></th>
	    <th><?php echo $form['nu_salario']->renderLabel() ?></th>
	    <th><?php echo $form['ds_forma_pagamento']->renderLabel() ?></th>
	    <th><?php echo $form['nu_pis']->renderLabel() ?></th>
	    <th><?php echo $form['dt_pis_cadastro']->renderLabel() ?></th>
	    <th><?php echo $form['hr_entrada']->renderLabel() ?></th>
	    <th><?php echo $form['hr_saida']->renderLabel() ?></th>
	    <th><?php echo $form['st_docente']->renderLabel() ?></th>
	    <th><?php echo $form['created_at']->renderLabel() ?></th>
	    <th><?php echo $form['updated_at']->renderLabel() ?></th>
		<th>Ações</th>
    </tr>
	</thead>
  	<tbody>
  	<?php if (!count($docente_list)): ?>
	<tr>
		<td align="center" colspan="8">NENHUM REGISTRO ENCONTRADO!</td>
	</tr>
	<?php endif; ?>
	<?php $i = 0; ?>
    <?php foreach ($docente_list as $docente): ?>
    <?php $bg = ($i++ % 2 == 0)? 'row0' : 'row1'; ?>
    <tr class="<?php echo $bg; ?>">
			    <td><a href="<?php echo url_for('docente/edit?id_docente='.$docente['id_docente']) ?>"><?php echo $docente['id_docente'] ?></a></td>
				    <td><?php echo $docente['nm_docente'] ?></td>
			    <td><?php echo $docente['nu_ordem'] ?></td>
			    <td><?php echo $docente['nu_matricula'] ?></td>
			    <td><?php echo $docente['nm_mae'] ?></td>
			    <td><?php echo $docente['nm_pai'] ?></td>
			    <td><?php echo $docente['nm_conjuge'] ?></td>
			    <td><?php echo $docente['dt_nascimento'] ?></td>
			    <td><?php echo $docente['sg_nacionalidade'] ?></td>
			    <td><?php echo $docente['sg_estado_civil'] ?></td>
			    <td><?php echo $docente['nm_cidade_nascimento'] ?></td>
			    <td><?php echo $docente['sg_uf_nascimento'] ?></td>
			    <td><?php echo $docente['nu_ci'] ?></td>
			    <td><?php echo $docente['ds_ci_orgao_emissor'] ?></td>
			    <td><?php echo $docente['sg_ci_uf'] ?></td>
			    <td><?php echo $docente['nu_ctps'] ?></td>
			    <td><?php echo $docente['nu_ctps_serie'] ?></td>
			    <td><?php echo $docente['nu_reservista'] ?></td>
			    <td><?php echo $docente['nu_reservista_categoria'] ?></td>
			    <td><?php echo $docente['nu_cpf'] ?></td>
			    <td><?php echo $docente['ds_endereco'] ?></td>
			    <td><?php echo $docente['sg_endereco_uf'] ?></td>
			    <td><?php echo $docente['nu_endereco_cep'] ?></td>
			    <td><?php echo $docente['dt_admissao'] ?></td>
			    <td><?php echo $docente['dt_demissao'] ?></td>
			    <td><?php echo $docente['ds_cargo'] ?></td>
			    <td><?php echo $docente['nu_salario'] ?></td>
			    <td><?php echo $docente['ds_forma_pagamento'] ?></td>
			    <td><?php echo $docente['nu_pis'] ?></td>
			    <td><?php echo $docente['dt_pis_cadastro'] ?></td>
			    <td><?php echo $docente['hr_entrada'] ?></td>
			    <td><?php echo $docente['hr_saida'] ?></td>
			    <td><?php echo $docente['st_docente'] ?></td>
			    <td><?php echo $docente['created_at'] ?></td>
			    <td><?php echo $docente['updated_at'] ?></td>
			<td>
						    	<?php
            echo link_to(
                ' ',
                url_for('docente/edit?id_docente='.$docente['id_docente']),
                array('class'=>'icoEditar','title'=>'Editar docente')
            )
        ?>
    	<?php
            echo link_to(
                ' ',
                url_for('docente/delete?id_docente='.$docente['id_docente']),
                array('class'=>'icoExcluir','title'=>'Excluir docente', 'confirm' => 'Tem certeza que deseja Excluir?')
            )
        ?>
	</td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
</div>